﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectWizardManagementv1.ViewModels.Concrete.Message
{
    public class NotificationBoxMessage
    {
        public string Header { get; set; }

        public string Message { get; set; }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof (NotificationBoxMessage)) return false;
            return Equals((NotificationBoxMessage) obj);
        }

        public bool Equals(NotificationBoxMessage other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return Equals(other.Header, Header) && Equals(other.Message, Message);
        }

        public override int GetHashCode()
        {
            return ((Header != null ? Header.GetHashCode() : 0)*397) ^ (Message != null ? Message.GetHashCode() : 0);
        }
    }
}
